package com.platform.api.bzproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.platform.api.bzproject.model.BalanceRecord;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;
import java.util.Map;


/**
 * <p>
 * 余额记录表 服务类
 * </p>
 *
 * @author guoshao
 * @since 2021-10-29
 */
public interface IBalanceRecordService extends IService<BalanceRecord> {

    BigDecimal selectSumMoney(BalanceRecord record);

    List<BigDecimal> thisMonth(BalanceRecord record);

    List<BigDecimal> lastMonth(BalanceRecord record);

    PageInfo<BalanceRecord> selectBalanceRecordList(BalanceRecord balanceRecord, Integer offset);

    int getRecordCount(String userId);

    void delRandId(String userId, int count);

    Integer getDownCount(Map<String,Object> map);


    PageInfo<BalanceRecord> selecttBalanceRecordListNew(BalanceRecord balanceRecord, Integer offset);

}
